import { Button } from 'antd';
import React, { useEffect } from 'react';
import { useNavigate, useLocation, useSearchParams } from 'react-router-dom';

const LoginPage = () => {
  const navigate = useNavigate();
  const location = useLocation();
  const [param] = useSearchParams();
  useEffect(() => {
    console.log('eeee', param.getAll('name'));
  }, []);
  return (
    <div>
      LoginPage
      <Button onClick={() => navigate('/')}>前往首页</Button>
    </div>
  );
};
export default LoginPage;
